<template>
    <div>
        <Addreess name="edit" :detailInfo="detailInfo" />
    </div>
</template>
<script>
import Addreess from './components/Address.vue'
import { mapState } from 'vuex'
export default {
    components: { Addreess },
    data() {
        return {
            detailInfo: {}
        };
    },
    computed: {
        ...mapState(['addressList'])
    },
    created() {
        console.log(this.$route.params.id)
        console.log(this.addressList)
        this.detailInfo = this.addressList.find(item => item.id == this.$route.params.id)
        console.log(this.detailInfo)
    },
}
</script>
<style scoped></style>